package banking7.domain;

import banking6.CheckingAccount;
import banking6.SavingsAccount;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-11-03
 * Time:12:32
 */
public class Customer {
    //a
    private String firstName;
    private String lastName;
    private Account[] accounts=new Account[5];
    private int getNumOfAccounts;


    //b
    public Customer(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }
    //c
    public String getFirstName() {
        return firstName;
    }
    //c
    public String getLastName() {
        return lastName;
    }

    public Account getAccount(int i){
        return accounts[i];
    }
    public void addAccount(Account account){
        accounts[this.getNumOfAccounts]=account;
        this.getNumOfAccounts++;
    }

    public int getGetNumOfAccounts() {
        return getNumOfAccounts;
    }


}
//1、刘金玉
//2、MYSQL
//3、英语语法+听力
//4、java:作业+C
//5、11：英词11、3、